package com.baiwei.vpnapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;


/**
 * @program: vpnapi
 * @description: 推荐信息bean类
 * @author: Mr. Stone
 * @create: 2020-09-01 17:08
 **/
@TableName("recommend")
@Data
public class VpnRecommend {
    @TableId(value = "recommend_id", type = IdType.AUTO)
    private Integer recommendId;

    @JsonIgnore
    private Integer inviteUser; //'邀请用户'

    @JsonIgnore
    private String deviceToken; // '设备标识'

    private String inviteUserName; //'邀请用户名',

    @JsonIgnore
    private Integer targetUser; //'被邀请用户',

    private String targetUserName; //'被邀请用户名',

    private Integer status; //'0 未领取 1 已领取 2 已消费',

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date createTime; //'分享发生时间',

//    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @JsonIgnore
    private Date takeTime; //'领取时间',

    @JsonIgnore
    private Date invalidTime; //'失效时间'
}
